<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ page import="org.apache.jasper.tagplugins.jstl.core.ForEach"%>
<%@ page import="bean.MailBEAN" language="java"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Game</title>
<link href="css/tcss.css" rel="stylesheet" type="text/css" media="all">
</head>
<body>
	<div class="container">
		<div class="header">
			<img src="images/header.jpg"></img>
		</div>
		<div class="topMenu">
			<%@ include file="infoBar.jsp"%>
		</div>
		<div class="sideMenu">
			<%@ include file="menu.jsp"%>
		</div>
		<div class="center">
			<form name="mail" action="Mail" method="post">
				<input type="hidden" name="action" value="mail">
				<center>
					<table border="1" style="border: 1px;">
						<tr>
							<td><input type="checkbox" name="mail" value="0"></td>
							<td style="width: 150px;"><b>Sender</b></td>
							<td style="width: 300px;"><b>Subject</b></td>
							<td style="width: 150px;"><b>Time</b></td>
						</tr>
						<c:forEach var="MailBEAN" items="${mailList}">
							<div class="mail">
								<tr>
									<td><input type="checkbox" name="mail"
										value="${MailBEAN.mailID}"></td>
									<td><a
										href="User?action=goToProfile${MailBEAN.mailFromID}">${MailBEAN.sender}</a></td>
									<td><a href="Mail?action=getMail${MailBEAN.mailID}">${MailBEAN.title}</a></td>
									<td>${MailBEAN.dateTimeConverted}</td>
								</tr>
							</div>
						</c:forEach>
					</table>
				</center>
			</form>
			<form name="createMail" action="Mail" method="post">
				<center>
					<input type="hidden" name="action" value="createMail">
					<table>
						<tr>
							<td></td>
							<td></td>
							<td><input type="submit" name="submit" value="Create mail"></td>
							<td></td>
						</tr>
					</table>
				</center>
			</from>
		</div>
	</div>
</body>
</html>